// 定义环境名称的字面量类型
type EnvType = "development" | "test" | "prod";

const env = (import.meta.env.MODE || "prod") as EnvType;;

const EnvConfig = {
    development:{
        baseApi:"/api",
        mockApi:"https://apifoxmock.com/m1/4068509-0-default/api",
    },
    test:{
        baseApi:"//test.aimoss.com/api",
        mockApi:"https://apifoxmock.com/m1/4068509-0-default/api",
    },
    prod:{
        baseApi:"//aimoss.com/api",
        mockApi:"https://apifoxmock.com/m1/4068509-0-default/api",
    }
}



export default {
    env,
    ...EnvConfig[env],
    // mock
    mock:false,
}
